Always draw outline
authorMatthias Clasen <mclasen@redhat.com>
Tue, 29 Aug 2017 02:27:07 +0000 (22:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Oct 2017 21:59:00 +0000 (17:59 -0400)
We can now control with CSS where there the outline
is drawn.

gtk/gtkwidget.c

index c0977d545d1d13ea595c80282af11a25ae615191..823b3ab32086571c9bdb5b436abdfb46ad423c49 100644 (file)
@@ -15183,15 +15183,12 @@ gtk_widget_snapshot (GtkWidget   *widget,
           cairo_destroy (cr);
         }
 
-      if (gtk_widget_has_visible_focus (widget))
-        {
-          gtk_snapshot_offset (snapshot, margin.left, margin.top);
-          gtk_css_style_snapshot_outline (style,
-                                          snapshot,
-                                          allocation.width - margin.left - margin.right,
-                                          allocation.height - margin.top - margin.bottom);
-          gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
-        }
+      gtk_snapshot_offset (snapshot, margin.left, margin.top);
+      gtk_css_style_snapshot_outline (style,
+                                      snapshot,
+                                      allocation.width - margin.left - margin.right,
+                                      allocation.height - margin.top - margin.bottom);
+      gtk_snapshot_offset (snapshot, - margin.left, - margin.top);
 
       if (opacity < 1.0)
         gtk_snapshot_pop (snapshot);